当用IP地址指定某打印机时
c:> lpr -Sprinter's IP address -Poption [ol] \pass name\file name
当使用某主机名替代IP地址时
c:> lpr -Sprinter's host name -Poption [ol] \pass name\file name
打印二进制文件时,添加“-ol”选项(小写的o和小写的l)。
用主机名为“host”的打印机打印名为“file1”且位于C:\PRINT目录下的RPCS文件时,命令行如下:
<literallayout,>c:> lpr -Shost -Pfiletype=RCS -ol C:\PRINT\file1</literallayout>